package com.goldfish666.remote_control.entity.common;

import com.goldfish666.remote_control.entity.base.BaseKeyWithDistributedId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Inheritance(strategy = InheritanceType.JOINED)
//@BeanCopySource(source = InputDto.class, features = {CopyFeature.IGNORE_ALL_NULL_SOURCE_VALUE})
public class Device extends BaseKeyWithDistributedId {

    /**
     * 设备名称
     */
    private String name;

    /**
     * key
     */
    private String deviceKey;

    /**
     * 密钥，和key一起绑定设备和人
     */
    private String devicePrivacy;

}
